<%@page import="javax.print.DocFlavor.STRING"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../../common/prama.jsp" %>
<%
	HashMap<String,String> model = (HashMap<String,String>)request.getAttribute("model");
	String finishImg = null;
	String finishVoice = null;
	if(model!=null){
		finishImg = model.get("FINISH_IMG");
		finishVoice = model.get("FINISH_VOICE");
	}
%>
<div >
	<form id="todoForm" >
		<div class="CommonPanel">
			<table>
				<tr>
					<td class="label">待办编码：</td>
					<td class="input">${model.TODO_CODE }</td>
					<td class="label">紧急程度：</td>
					<td class="input">
						${model.TODO_LEVEL_TEXT }
					</td>
				</tr>
				<tr>
					<td class="label">截止时间：</td>
					<td class="input">${model.END_TIME }</td>
					<td class="label">待办类型：</td>
					<td class="input" id="todo_type_td" colspan="3">${model.TODO_TYPE_NAME }</td>
				</tr>
				<tr>
					<td class="label">待办标题：</td>
					<td class="input" colspan="3">${model.TITLE }</td>
				</tr>
				<tr>
					<td class="label">待办内容：</td>
					<td class="input" colspan="3">${model.CONTENT }</td>
				</tr>
			</table>
		</div>
		<div class="CommonPanel">
			<table>
				<tr>
					<td class="label">目标地址：</td>
					<td class="input" colspan="3">
						${model.ADDRESS }
						&nbsp;
						<%
							if(finishImg != null){
						%>
							<a id="checkMap">查看地图位置</a>
							&nbsp;
							<a id="checkFinish">查看完成情况</a>
						<%
							}
						%>
					</td>
				</tr>
			</table>
		</div>
		<div id="bmap" style="height: 270px;width: 557px;"></div>
		<%
			if(finishImg != null){
		%>
			<div class="CommonPanel" id="finishInfo" style="height: 270px;width: 557px;display: none;text-align: center;">
				<table >
					<tr>
						<td class="label">完成时间：</td>
						<td class="input" >${model.FINISH_TIME }</td>
					</tr>
					<tr>
						<td class="label">完成位置：</td>
						<td class="input" id="finishAddress"></td>
					</tr>
					<tr>
						<td class="label">待办反馈：</td>
						<td class="input" style="text-align: left;" >${model.FINISH_NOTE }</td>
					</tr>
					<%
						if(finishImg != null && !finishImg.equals("")){
					%>
						<tr>
							<td class="label">待办图像：</td>
							<td class="input" ><img style="height: 185px;max-width: 300px;" src="${BaseUrl }/${model.FINISH_IMG}"/></td>
						</tr>
					<%
						}
					%>
				</table>
			</div>
		<%
			}
		%>
		<button onclick="return false" style="display: none"></button>
		<input type="hidden" id="x" value="${model.X }" />
		<input type="hidden" id="y" value="${model.Y }" />
		<input type="hidden" id="FINISH_X" value="${model.FINISH_X }" />
		<input type="hidden" id="FINISH_Y" value="${model.FINISH_Y }" />
		<input type="hidden" name="userids" id="todo_userid"/>
		<input type="hidden" name="id" value="${model.ID }"/>
	</form>
</div>